package com.itheima.app.controller.umsController;


import com.itheima.app.manager.umsManager.UmsMemberLevelManager;
import com.itheima.commons.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UmsMemberLevelController {

    @Autowired
    private UmsMemberLevelManager memberLevelManager;


    //查询所有会员等级
    @GetMapping("/memberLevel/list")
    public R findMemberLevel(@RequestParam("defaultStatus") Integer defaultStatus ) {
        return memberLevelManager.findAllMemberLevel(defaultStatus);
    }
}